package game

import (
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type ProjectRouter struct{}

func (s *ProjectRouter) InitProjectRouter(Router *gin.RouterGroup) {
	apiRouter := Router.Group("project").Use(middleware.OperationRecord())
	{
		apiRouter.POST("getProjectList", projectApi.GetProjectList) // 获取路由组
		apiRouter.POST("createProject", projectApi.CreateProject)   // 创建Api
		apiRouter.DELETE("deleteProject", projectApi.DeleteProject) // 删除Api
		apiRouter.GET("getProject", projectApi.GetProjectById)      // 获取单条Api消息
		apiRouter.PUT("updateProject", projectApi.UpdateProject)    // 更新api
	}
}
